@namespace MduiBlazor
@inherits MduiInputBase<bool>

<label class="@Classname" style="@Style" @attributes="@AdditionalAttributes">
    <input @ref="@Element" type="checkbox" required="@Required" disabled="@Disabled" readonly="@Readonly"
        checked="@BindConverter.FormatValue(CurrentValue)"
        @onchange="@(EventCallback.Factory.CreateBinder<bool>(this,__value=>CurrentValue=__value,CurrentValue))"
        @onfocus="@OnInputFocus" @onblur="@OnInputBlur" />
    <i class="mdui-@TypeName-icon"></i>
    @if (ChildContent is not null)
    {
        @ChildContent
    }
    else if (Label is not null)
    {
        @Label
    }
</label>